﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Extensions.DependencyInjection;

using Xc.Tools.Apis.Views;
using Xc.Views.Core;

namespace Xc.Tools.Apis
{
    [Boot("文档说明编辑器")]
    public class StartUp:ApplicationBooster<Appsetting>
    {
        protected override void BeforeBuild(IServiceCollection serviceDescriptors)
        {
            serviceDescriptors.AddTransient<DocEditorView>();
            base.BeforeBuild(serviceDescriptors);
        }
        /// <summary>
        /// 获取主UI元素
        /// </summary>
        /// <returns></returns>
        public  DocEditorView GetMainElement()
        {
            return base.GetMainElement<DocEditorView>();
        }
    }
}
